package io.renren.common.utils.enums;

public enum StatusEnums {


    wait_audit("1","审核中"),
    yet_audit("2","通过"),
    not_audit("3","退回");


    private String type;

    private String value;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    StatusEnums(String type, String value) {
        this.type = type;
        this.value = value;
    }

    public static String getValueByType(String type){
        StatusEnums[] enums = values();
        for (StatusEnums enum1 : enums){
            if (enum1.getType().equals(type)){
                return enum1.getValue();
            }
        }
        return null;
    }
}
